﻿
@{
    ViewBag.Title = "ProjectTest";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section scripts{
<script src="/Content/js/viewModel/com.viewModel.edit.js"></script>
<script type="text/javascript">
    var viewModel = function(data){ 
        var self = this;
        com.viewModel.edit.apply(self,arguments);
    } 
    var data = @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model));
    ko.bindingViewModel(new viewModel(data));
</script>
}

<div class="z-toolbar">
    <a id="a_save" href="#" plain="true" class="easyui-linkbutton" icon="icon-save" data-bind="click:readonly()?null:saveClick,linkbuttonDisable:readonly" title="保存">保存</a>
    <a id="a_undo" href="#" plain="true" class="easyui-linkbutton" icon="icon-undo" data-bind="click:readonly()?null:rejectClick,linkbuttonDisable:readonly" title="撤消">撤消</a>
    <a id="a_audit" href="#" plain="true" class="easyui-linkbutton" icon="icon-user-accept" data-bind="click:auditClick,easyuiLinkbutton:approveButton" title="审核">审核</a>
    <a id="a_printer" href="#" plain="true" class="easyui-linkbutton" icon="icon-printer" title="打印" data-bind="click:printClick">打印</a>
    <div class="datagrid-btn-separator"></div>
    <a id="a_other" href="#" class="easyui-splitbutton" data-options="menu:'#divother',iconCls:'icon-application_go'" title="其他">其他</a>
    <div class="datagrid-btn-separator"></div>
    <a id="a_first" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_first" data-bind="click:firstClick,linkbuttonEnable:pageData.scrollKeys.firstEnable" title="第一条"></a> 
    <a id="a_previous" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_previous" data-bind="click:previousClick,linkbuttonEnable:pageData.scrollKeys.previousEnable" title="上一条"></a> 
    <a id="a_next" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_next" data-bind="click:nextClick,linkbuttonEnable:pageData.scrollKeys.nextEnable" title="下一条"></a> 
    <a id="a_last" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_last" data-bind="click:lastClick,linkbuttonEnable:pageData.scrollKeys.lastEnable" title="最后一条"></a> 
</div>

<div id="divother" style="width:100px; display:none;">
    <div data-options="iconCls:'icon-add'">新增</div>
    <div data-options="iconCls:'icon-cross'">删除</div>
    <div data-options="iconCls:'icon-arrow_refresh'">刷新</div>
</div>  

<div id="master" class="container_12" data-bind="inputwidth:0.9">
    <div class="grid_1 lbl">ProjectCode</div>
    <div class="grid_3 val"><input type="text" data-bind="value:pageData.form.ProjectCode ,readOnly:readonly" class="z-txt " /></div>
    <div class="grid_1 lbl">ParentCode</div>
    <div class="grid_3 val"><input type="text" data-bind="value:pageData.form.ParentCode ,readOnly:readonly" class="z-txt " /></div>
    <div class="grid_1 lbl">ProjectName</div>
    <div class="grid_3 val"><input type="text" data-bind="value:pageData.form.ProjectName ,readOnly:readonly" class="z-txt " /></div>
    
    <div class="clear"></div>
    
    <div class="grid_1 lbl">ShortName</div>
    <div class="grid_3 val"><input type="text" data-bind="value:pageData.form.ShortName ,readOnly:readonly" class="z-txt " /></div>
    <div class="grid_1 lbl">OwnerUnit</div>
    <div class="grid_3 val"><input type="text" data-bind="value:pageData.form.OwnerUnit ,readOnly:readonly" class="z-txt " /></div>
    <div class="grid_1 lbl">DesignUnit</div>
    <div class="grid_3 val"><input type="text" data-bind="value:pageData.form.DesignUnit ,readOnly:readonly" class="z-txt " /></div>
    
    <div class="clear"></div>
    
    <div class="grid_1 lbl">ConstructionUnit</div>
    <div class="grid_3 val"><input type="text" data-bind="value:pageData.form.ConstructionUnit ,readOnly:readonly" class="z-txt " /></div>
    <div class="grid_1 lbl">SupervisionUnit</div>
    <div class="grid_3 val"><input type="text" data-bind="value:pageData.form.SupervisionUnit ,readOnly:readonly" class="z-txt " /></div>

    <div class="clear"></div>
</div>

<div id="tt" class="easyui-tabs">  
    <div title="明细" style="padding-top:2px;">
        <div class="container_12" data-bind="inputwidth:0.9,autoheight:155" id = "form0">
            <div class="grid_1 lbl">ChargePerson</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.ChargePerson ,readOnly:true" class="z-txt  readonly"/></div>
            <div class="grid_1 lbl">ContractMoney</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.ContractMoney ,readOnly:true" class="z-txt  readonly"/></div>
            <div class="grid_1 lbl">ContractBeginDate</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.ContractBeginDate ,readOnly:true" class="z-txt  readonly"/></div>
                
            <div class="clear"></div>
                
            <div class="grid_1 lbl">ContractEndDate</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.ContractEndDate ,readOnly:true" class="z-txt  readonly"/></div>
            <div class="grid_1 lbl">ActualBeginDate</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.ActualBeginDate ,readOnly:true" class="z-txt  readonly"/></div>
            <div class="grid_1 lbl">ActualEndDate</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.ActualEndDate ,readOnly:true" class="z-txt  readonly"/></div>
                
            <div class="clear"></div>
                
            <div class="grid_1 lbl">ActualDuration</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.ActualDuration ,readOnly:true" class="z-txt  readonly"/></div>
            <div class="grid_1 lbl">KeyProject</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.KeyProject ,readOnly:true" class="z-txt  readonly"/></div>
            <div class="grid_1 lbl">FundSource</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.FundSource ,readOnly:true" class="z-txt  readonly"/></div>
                
            <div class="clear"></div>
                
            <div class="grid_1 lbl">Region</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.Region ,readOnly:true" class="z-txt  readonly"/></div>
            <div class="grid_1 lbl">ProjectArea</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.ProjectArea ,readOnly:true" class="z-txt  readonly"/></div>
            <div class="grid_1 lbl">BuildingType</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.BuildingType ,readOnly:true" class="z-txt  readonly"/></div>
                
            <div class="clear"></div>
                
            <div class="grid_1 lbl">ProjectExplain</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.ProjectExplain ,readOnly:true" class="z-txt  readonly"/></div>
            <div class="grid_1 lbl">BuildingArea</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.BuildingArea ,readOnly:true" class="z-txt  readonly"/></div>
            <div class="grid_1 lbl">CompleteArea</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.CompleteArea ,readOnly:true" class="z-txt  readonly"/></div>
                
            <div class="clear"></div>
                
            <div class="grid_1 lbl">ProjectCost</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.ProjectCost ,readOnly:true" class="z-txt  readonly"/></div>
            <div class="grid_1 lbl">CreatePerson</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.CreatePerson ,readOnly:true" class="z-txt  readonly"/></div>
            <div class="grid_1 lbl">CreateDate</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.CreateDate ,readOnly:true" class="z-txt  readonly"/></div>
                
            <div class="clear"></div>
                
            <div class="grid_1 lbl">UpdatePerson</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.UpdatePerson ,readOnly:true" class="z-txt  readonly"/></div>
            <div class="grid_1 lbl">UpdateDate</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.UpdateDate ,readOnly:true" class="z-txt  readonly"/></div>
            <div class="grid_1 lbl">Remark</div>
            <div class="grid_3 val"><input type="text" data-bind="value:pageData.tab0.Remark ,readOnly:true" class="z-txt  readonly"/></div>
        </div>     
    </div>
</div>
